package ModelLayer;		//makes this class a part of the ModelLayer package
import java.io.*;

/**
 * Write a description of class Item here.
 * 
 * @author (ucn-1semprojekt-dm78-gruppe1) 
 * 
 */
@SuppressWarnings("serial")
public class Item implements Serializable
{
    private int itemnr;
    private String description;
    private double price;
    private int inStock;
    private String location;
    
    /**
     * Constructor for objects of class Item
     */
    public Item(int itemnr, String description, double price, int inStock, String location)
    {
        this.itemnr = itemnr;
        this.description = description;
        this.price = price;
        this.inStock = inStock;
        this.location = location;
    }
    
    public void setItemnr(int itemnr)
    {
        this.itemnr = itemnr;
    }
    
    public void setDescription(String description)
    {
    	this.description = description;
    }
    
    public void setPrice(double price)
    {
        this.price = price;
    }
    
    public void setInStock(int inStock)
    {
        this.inStock = inStock;
    }
    
    public void setLocation(String location)
    {
        this.location = location;
    }
    
    public int getItemnr()
    {
        return itemnr;
    }
    
    public String getDescription()
    {
    	return description;
    }
    
    public double getPrice()
    {
        return price;
    }
    
    public int getInStock()
    {
        return inStock;
    }

    public String getLocation()
    {
        return location;
    }
}
